import request from '@/utils/request'

// 查询问卷得分分类规则列表
export function listScoring_rules(query) {
  return request({
    url: '/system/scoring_rules/list',
    method: 'get',
    params: query
  })
}

// 查询问卷得分分类规则详细
export function getScoring_rules(id) {
  return request({
    url: '/system/scoring_rules/' + id,
    method: 'get'
  })
}

// 新增问卷得分分类规则
export function addScoring_rules(data) {
  return request({
    url: '/system/scoring_rules',
    method: 'post',
    data: data
  })
}

// 修改问卷得分分类规则
export function updateScoring_rules(data) {
  return request({
    url: '/system/scoring_rules',
    method: 'put',
    data: data
  })
}

// 删除问卷得分分类规则
export function delScoring_rules(id) {
  return request({
    url: '/system/scoring_rules/' + id,
    method: 'delete'
  })
}
